package com.freshmarket.freshmarket.service;

import com.freshmarket.freshmarket.entity.UserCoupon;
import com.baomidou.mybatisplus.extension.service.IService;
import com.freshmarket.freshmarket.utils.Result;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Squirrel
 * @since 2020-09-04
 */
public interface IUserCouponService extends IService<UserCoupon> {

    void lessUserCouponNum(int userId, int couponId, int useNum);

    /**
     * 新增直接发放券
     */
    public Result insertDirect(UserCoupon userCoupon) throws Exception;

    /**
     * 用户新增积分兑换券记录
     * @param userCoupon
     * @return
     * @throws Exception
     */
    public Result insertScore(UserCoupon userCoupon) throws Exception;



}
